package Test03;
/**
 *农名类
 */
public  class Farmer extends People implements Attack,Treat{
    public Farmer(String kind, String name, int level,String enemy) {
        super(kind, name, level,enemy);
    }


    @Override
    public void intor() {
        super.intor();
    }

    @Override
    public void attack() {
        System.out.println("Lv" + this.getLevel()+ "的" +this.getKind() + this.getName() + "对"
                + this.getEnemy() + "使用了攻击");
    }

    public void mine(){
        System.out.println("Lv" + this.getLevel()+ "的" +this.getName() + this.getKind() + "使用了独有技能挖矿");
    }

    @Override
    public void treat() {
        System.out.println("Lv" + this.getLevel()+ "的" +this.getKind() + this.getName() + "对"
                + this.getEnemy() + "使用了治疗");    }

}
